package com.leyou.gateway.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Eric
 * @version v1.0
 * @package com.leyou.gateway.client
 * @date 2019/7/9 18:46
 * @description:
 **/
@FeignClient("auth-service")
public interface AuthClient {

    @GetMapping("authorization")
    String authorization(@RequestParam("id") Long id, @RequestParam("secret") String secret);
}
